package com.daxue.testprovider.service.impl;


import com.alibaba.dubbo.config.annotation.Service;
import com.daxue.global.TestInterface;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;



/**
 * @author wangxuedi
 * Date: 2020/4/21 12:50
 * describe:
 */
@Slf4j
@Component
@Service
public class TestService implements TestInterface {


    private volatile long number = 0;

    @Override
    public String testMethod() {
        log.info("current request is {}", number++);
        return "current request is " + number;
    }
}



